# Copyright (2025) Beijing Volcano Engine Technology Ltd.
# SPDX-License-Identifier: MIT

import os
import configparser

# 创建 ConfigParser 对象
config = configparser.ConfigParser()
# 读取配置文件
config_file = 'rtc_config.ini'
config.read(config_file)

# 从配置文件中读取参数
try:
    SK = config.get('rtc_config', 'SK')
    AK = config.get('rtc_config', 'AK')
    RTC_APP_ID = config.get('rtc_config', 'RTC_APP_ID')
    RTC_APP_KEY = config.get('rtc_config', 'RTC_APP_KEY')
    DEFAULT_BOT_ID = config.get('rtc_config', 'DEFAULT_BOT_ID')
    DEFAULT_VOICE_ID = config.get('rtc_config', 'DEFAULT_VOICE_ID')
    ASR_APP_ID = config.get('rtc_config', 'ASR_APP_ID')
    TTS_APP_ID = config.get('rtc_config', 'TTS_APP_ID')
    PORT = int(config.get('rtc_config', 'PORT'))
except (configparser.NoSectionError, configparser.NoOptionError) as e:
    print(f"读取配置文件时出错: {e}")

# SK = "TkdFNU5XWTBaVGhrWlRRME5ESTJaR0pqWXpWaFptVTRaamRtWm1Vd05URQ=="
# AK = "AKLTM2JhMGE4NWQwMDhhNGIyMGI1ZTkzMjdlNDcyZjgzMmQ"

# RTC_APP_ID = "67c2dc7e7e5103017a105e5a"
# RTC_APP_KEY = "b3fbc76d4705426aaca5c10ded8f010d"

# DEFAULT_BOT_ID = "ep-20250302102744-lh4h5"
# DEFAULT_VOICE_ID = "zh_female_daimengchuanmei_moon_bigtts"

# ASR_APP_ID = "6759144051"
# TTS_APP_ID = "6759144051"

# PORT = 8080